- Notifications
You must be signed in to change notification settings - Fork 1.6k
/
Copy pathsource.cpp
27 lines (24 loc) · 674 Bytes
/
source.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#using <System.Xml.dll>
#using <System.Drawing.dll>
#using <System.dll>
#using <System.Windows.Forms.dll>
#using <System.Data.dll>
usingnamespaceSystem;
usingnamespaceSystem::Data;
usingnamespaceSystem::Windows::Forms;
public ref classForm1: publicForm
{
protected:
TextBox^ textBox1;
// <Snippet1>
private:
voidTryContains( DataSet^ myDataSet )
{
// Test each DataTable in a DataSet to see if it is bound to a BindingManagerBase.
foreach ( DataTable^ thisTable in myDataSet->Tables )
{
Console::WriteLine( "{0}: {1}", thisTable->TableName, this->BindingContext->Contains( thisTable ) );
}
}
// </Snippet1>
};